package com.ruoyi.active.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.active.mapper.TGroupActiveMapper;
import com.ruoyi.active.domain.TGroupActive;
import com.ruoyi.active.service.ITGroupActiveService;

/**
 * 拼团活动Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-01
 */
@Service
public class TGroupActiveServiceImpl implements ITGroupActiveService 
{
    @Autowired
    private TGroupActiveMapper tGroupActiveMapper;

    /**
     * 查询拼团活动
     * 
     * @param activeId 拼团活动主键
     * @return 拼团活动
     */
    @Override
    public TGroupActive selectTGroupActiveByActiveId(Long activeId)
    {
        return tGroupActiveMapper.selectTGroupActiveByActiveId(activeId);
    }

    /**
     * 查询拼团活动列表
     * 
     * @param tGroupActive 拼团活动
     * @return 拼团活动
     */
    @Override
    public List<TGroupActive> selectTGroupActiveList(TGroupActive tGroupActive)
    {
        return tGroupActiveMapper.selectTGroupActiveList(tGroupActive);
    }

    /**
     * 新增拼团活动
     * 
     * @param tGroupActive 拼团活动
     * @return 结果
     */
    @Override
    public int insertTGroupActive(TGroupActive tGroupActive)
    {
        return tGroupActiveMapper.insertTGroupActive(tGroupActive);
    }

    /**
     * 修改拼团活动
     * 
     * @param tGroupActive 拼团活动
     * @return 结果
     */
    @Override
    public int updateTGroupActive(TGroupActive tGroupActive)
    {
        return tGroupActiveMapper.updateTGroupActive(tGroupActive);
    }

    /**
     * 批量删除拼团活动
     * 
     * @param activeIds 需要删除的拼团活动主键
     * @return 结果
     */
    @Override
    public int deleteTGroupActiveByActiveIds(Long[] activeIds)
    {
        return tGroupActiveMapper.deleteTGroupActiveByActiveIds(activeIds);
    }

    /**
     * 删除拼团活动信息
     * 
     * @param activeId 拼团活动主键
     * @return 结果
     */
    @Override
    public int deleteTGroupActiveByActiveId(Long activeId)
    {
        return tGroupActiveMapper.deleteTGroupActiveByActiveId(activeId);
    }
}
